Skip to content

Feat(JSSDK + FE + Harmony): 增加 getAppBaseInfo,过滤缓存结果#237

Merged
dos1in merged 26 commits into
didi:mainfrom
EchoTechFE:fix/quickjs-version-header-conflict
May 31, 2026
Merged

Feat(JSSDK + FE + Harmony): 增加 getAppBaseInfo,过滤缓存结果#237
dos1in merged 26 commits into
didi:mainfrom
EchoTechFE:fix/quickjs-version-header-conflict

Conversation

@Hierifer

Copy link
Copy Markdown
Contributor

No description provided.

huteng and others added 25 commits May 9, 2026 13:27
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…> header on macOS

On case-insensitive filesystems (macOS), QuickJS's plain-text VERSION file
shadows the C++17/20 standard <version> header when quickjs_SOURCE_DIR is
in the include path, causing "expected unqualified-id" compilation errors.

Delete the VERSION file at both configure time and after git updates in
the build-time update_quickjs_latest target.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…-header-conflict

# Conflicts:
#	fe/packages/service/src/api/common/index.js
…field filtering

- Add getAppBaseInfo bridge method on Harmony with filtered fields (SDKVersion, enableDebug, host, language, version, theme, fontSizeScaleFactor, fontSizeSetting)
- Add missing systemInfo fields on Harmony: enableDebug, language, theme, host, fontSizeScaleFactor, fontSizeSetting
- Add DMPHostEnvBuilder to build and cache hostEnv snapshot for loadResource message
- Add pick() function in service layer to filter hostEnv-resolved API responses
- Add missing fields to H5 getSystemInfoSync (theme, fontSizeScaleFactor, fontSizeSetting, language)
- Regenerate JSSDK to v1.0.15

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…-header-conflict

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use toEqual instead of toBe for APIs that now return filtered subsets
via pick(), and expand test data to cover all API field groups.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Comment thread shared/jssdk/config.json Outdated
{
"versionCode": 12,
"versionName": "1.0.11"
"versionCode": 16,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里版本号需要递增,删除后重新生成一版就行。

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这个文件的改动是什么目的

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

鸿蒙之前的修改,在 macOS 跑不起来。生成的文件格式,不被 macOS 识别。让 CC 修复了一下。

@dos1in dos1in merged commit 0c6db20 into didi:main May 31, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants